package com.meila.cms.dao;
 
import java.util.List;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.meila.cms.entity.User;
import com.meila.cms.model.UserModel;
 

public interface UserMapper {
	
    int deleteByPrimaryKey(Integer id);

    int insert(UserModel record);

    int insertSelective(UserModel record);

    UserModel selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserModel record);

    int updateByPrimaryKey(UserModel record);
    
    UserModel loadByPhone(String phone);
    
	List<UserModel> findUser(UserModel userModel,PageBounds pageBounds);
	
	int findUserCount(UserModel userModel,PageBounds pageBounds);
	
	UserModel selectByPhone(String phone);
	
	int selectMaxId();
}